package com.foreknow.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Invoice implements Serializable {
    /**
     * ID主键
     *
     * @mbggenerated
     */
    private Integer id;

    /**
     * 发票号码
     *
     * @mbggenerated
     */
    private String invoicenum;

    /**
     * 发票金额
     *
     * @mbggenerated
     */
    private BigDecimal money;

    /**
     * 发票状态  1-正常  2-作废 
     *
     * @mbggenerated
     */
    private Integer state;

    /**
     * 收/退费时间 
     *
     * @mbggenerated
     */
    private Date creationtime;

    /**
     * 收/退费人员ID 
     *
     * @mbggenerated
     */
    private Integer userid;

    /**
     * 挂号ID 
     *
     * @mbggenerated
     */
    private Integer registid;

    /**
     * 收费方式 
     *
     * @mbggenerated
     */
    private Integer feetype;

    /**
     * 冲红发票号码
     *
     * @mbggenerated
     */
    private String back;

    /**
     * 发票状态  0-未日结  1-已提交  2-已审核 
     *
     * @mbggenerated
     */
    private Integer dailystate;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInvoicenum() {
        return invoicenum;
    }

    public void setInvoicenum(String invoicenum) {
        this.invoicenum = invoicenum;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreationtime() {
        return creationtime;
    }

    public void setCreationtime(Date creationtime) {
        this.creationtime = creationtime;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getRegistid() {
        return registid;
    }

    public void setRegistid(Integer registid) {
        this.registid = registid;
    }

    public Integer getFeetype() {
        return feetype;
    }

    public void setFeetype(Integer feetype) {
        this.feetype = feetype;
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back;
    }

    public Integer getDailystate() {
        return dailystate;
    }

    public void setDailystate(Integer dailystate) {
        this.dailystate = dailystate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", invoicenum=").append(invoicenum);
        sb.append(", money=").append(money);
        sb.append(", state=").append(state);
        sb.append(", creationtime=").append(creationtime);
        sb.append(", userid=").append(userid);
        sb.append(", registid=").append(registid);
        sb.append(", feetype=").append(feetype);
        sb.append(", back=").append(back);
        sb.append(", dailystate=").append(dailystate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}